import request from '@/utils/request'

// 查询公园管养导入列表
export function listParkImportBase(query) {
  return request({ method: 'get', params: query,url: '/standingbook/parkImportBase/list'})
}

// 查询公园管养导入详细
export function getParkImportBase(batchNo) {
  return request({ url: '/standingbook/parkImportBase/' + batchNo, method: 'get'  })
}

// 新增公园管养导入
export function addParkImportBase(data) {
  return request({url: '/standingbook/parkImportBase',method: 'post',data: data})
}

// 修改公园管养导入
export function updateParkImportBase(data) {
  return request({method: 'put',data: data,url: '/standingbook/parkImportBase' })
}

// 删除公园管养导入
export function delParkImportBase(batchNo) {
  return request({  method: 'delete', url: '/standingbook/parkImportBase/' + batchNo  })
}

export function importData(data) {
  return request({
    url: '/standingbook/parkImportBase/importData',
    method: 'post',
    data: data
  })
}